package br.biofoco.p2p.rpc.messaging;

public class WireResponseMessage extends WireMessage {

	private static final long serialVersionUID = -6167717981097099912L;
	
	private String type = "RESPONSE";
	private MessageCode code;
	private String content;
	
	public WireResponseMessage() {}

	public WireResponseMessage(Integer id, MessageCode code, String method, String content) {
		super(id, method);
		this.setCode(code);
		this.content = content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public String getContent() {
		return content;
	}

	public void setCode(MessageCode code) {
		this.code = code;
	}

	public MessageCode getCode() {
		return code;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getType() {
		return type;
	}

}
